package COM;

import entity.Jobs;

import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.List;

public class JobsManger extends JFrame implements ActionListener{
    private JButton btn1,btn2,btn3,btn4;
    private JTextField tf;
    private JTextArea ta;
    private DefaultTableModel model;
    private List<Jobs> stus;

    public JobsManger(){
        setTitle("信息管理");
        setSize(850,500);
        setResizable(false);
        setVisible(true);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
        setLayout(null);
        String[] str={"job_id","job_title","Max_salary","Min_salary"};
        btn1=new JButton("添加");
        btn2=new JButton("修改");
        btn3=new JButton("删除");
        btn4=new JButton("查询");
        tf=new JTextField();
        tf.setBounds(500,25,200,25);
        btn1.setBounds(50,25,100,25);
        btn2.setBounds(200,25,100,25);
        btn3.setBounds(350,25,100,25);
        btn4.setBounds(700,25,100,25);
        btn1.addActionListener(this);
        btn2.addActionListener(this);
        btn3.addActionListener(this);
        btn4.addActionListener(this);
        add(btn1);add(btn2);add(btn3);add(btn4);add(tf);

    }

    @Override
    public void actionPerformed(ActionEvent e) {

    }

    public static void main(String[] agrs){
        SwingUtilities.invokeLater(new Runnable() {
            @Override
            public void run() {
                new COM.JobsManger();
            }
        });
    }
}
